package cn.javacc.util;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

public class BaseController {
	protected Log logger = LogFactory.getLog(this.getClass());
	
	protected static final int STATUS_SUCCESS = 200;

	@InitBinder
	public void initBinder(WebDataBinder binder) {
		// SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		// dateFormat.setLenient(false);
		// true passed to CustomDateEditor constructor means convert empty
		// String to null
		// binder.registerCustomEditor(Date.class, new
		// CustomDateEditor(dateFormat, true));
	}
}
